package org.neuedu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.neuedu.common.ResultJson;
import org.neuedu.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 科室表 服务类
 * </p>
 *
 * @author lzw
 * @since 2024-11-06
 */
public interface DepartmentService extends IService<Department> {
    IPage<Department> list(Integer pageNo, Integer pageSize, String name);
    boolean add(String code, String name, String type);

    Boolean del(Long id,Boolean delmark);
    Boolean check(String field,String value,Long id);
    Boolean update(Long id, String code, String name, String type);

    List<Department> getActive();
    List<Department> getRegisterDept();

}
